﻿using System;
using System.Data;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;
namespace AnyOffice.general.hrms.manage
{
    public partial class delete : ModulePage
    {

        protected void Page_Load(object sender, EventArgs e)
        {
            int hrmsId = (Request.QueryString["hrms_id"] != null) ? int.Parse(Request.QueryString["hrms_id"].ToString()) : 0;
            this.ViewState["HrmsId"] = hrmsId;
            int num2 = (Request.QueryString["dept_id"] != null) ? int.Parse(Request.QueryString["dept_id"].ToString()) : 0;
            this.ViewState["DeptId"] = num2;
            new HrmsDao().Delete(base.Conn, hrmsId);
            base.CloseConn();
            Response.Redirect("dept.aspx?dept_id=" + num2.ToString());
        }

    }
}
